home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Interactive 7
/
PC World Interactive 7.iso
/
program
/
ctutor.exe
/
ANSWERS
/
CH06_1.C
< prev
next >
Wrap
C/C++ Source or Header
|
1994-05-15
|
692b
|
33 lines
#include "stdio.h"
#define START 7
#define END -5
void main()
{
int index;
for(index = START ; index >= END ; index = index - 1)
printf("The value of the count is now %2d\n", index);
}
/* Result of execution
The value of the count is now 7
The value of the count is now 6
The value of the count is now 5
The value of the count is now 4
The value of the count is now 3
The value of the count is now 2
The value of the count is now 1
The value of the count is now 0
The value of the count is now -1
The value of the count is now -2
The value of the count is now -3
The value of the count is now -4
The value of the count is now -5
*/